




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.mac.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.mac.entity.Mac;
import com.application.mac.struts.form.MacForm;
import com.application.mac.dao.MacDAO;
 /**
 * 
 * Description:MacService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class MacService extends BaseService
{
	private MacDAO macDAO;

	public MacDAO getMacDAO() {
		return this.macDAO;
	}

	public void setMacDAO(MacDAO macDAO) {
		this.macDAO = macDAO;
	}
        

        public Mac getMac(Mac mac) {
		return (Mac) this.getBaseDao().queryByPk(mac, mac.getId());
	}
	
	public Integer getAllCountMac(MacForm macForm){
		return this.macDAO.getAllCountMac(macForm);
	}
	
	public List<Mac> searchMac(MacForm macForm, PageBean pageBean) throws Exception {
		List<Mac> macList = (List) this.macDAO.searchMac(macForm, pageBean);
		return macList;
	}
        
        public void deleteMacs(MacForm macForm){
	   this.macDAO.deleteMacs(macForm);	 
	}
        public List searchMac(final MacForm macForm) {
    		List<Mac> macList = (List) this.macDAO.searchMac(macForm);
    		return macList;
    	}
}
